.class public Landroid/widget/MyHeaderViewListAdapter;
.super Ljava/lang/Object;
.source "MyHeaderViewListAdapter.java"

# interfaces
.implements Landroid/widget/WrapperListAdapter;
.implements Landroid/widget/Filterable;


# instance fields
.field private mAdapter:Landroid/widget/ListAdapter;

.field mAreAllFixedViewsSelectable:Z

.field mFooterViewInfos:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/MyListView$FixedViewInfo;",
            ">;"
        }
    .end annotation
.end field

.field mHeaderViewInfos:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/MyListView$FixedViewInfo;",
            ">;"
        }
    .end annotation
.end field

.field private mIsFilterable:Z


# direct methods
.method public constructor <init>(Ljava/util/ArrayList;Ljava/util/ArrayList;Landroid/widget/ListAdapter;)V
    .locals 1
    .parameter
    .parameter
    .parameter "adapter"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/MyListView$FixedViewInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/MyListView$FixedViewInfo;",
            ">;",
            "Landroid/widget/ListAdapter;",
            ")V"
        }
    .end annotation

    .prologue
    .line 45
    .local p1, headerViewInfos:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/widget/MyListView$FixedViewInfo;>;"
    .local p2, footerViewInfos:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/widget/MyListView$FixedViewInfo;>;"
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 46
    iput-object p3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    .line 47
    instance-of v0, p3, Landroid/widget/Filterable;

    iput-boolean v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mIsFilterable:Z

    .line 49
    iput-object p1, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    .line 50
    iput-object p2, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    .line 52
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-direct {p0, v0}, Landroid/widget/MyHeaderViewListAdapter;->areAllListInfosSelectable(Ljava/util/ArrayList;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-direct {p0, v0}, Landroid/widget/MyHeaderViewListAdapter;->areAllListInfosSelectable(Ljava/util/ArrayList;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    iput-boolean v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAreAllFixedViewsSelectable:Z

    .line 55
    return-void

    .line 52
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private areAllListInfosSelectable(Ljava/util/ArrayList;)Z
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/widget/MyListView$FixedViewInfo;",
            ">;)Z"
        }
    .end annotation

    .prologue
    .line 70
    .local p1, infos:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/widget/MyListView$FixedViewInfo;>;"
    if-eqz p1, :cond_1

    .line 71
    invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .local v0, i$:Ljava/util/Iterator;
    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/MyListView$FixedViewInfo;

    .line 72
    .local v1, info:Landroid/widget/MyListView$FixedViewInfo;
    iget-boolean v2, v1, Landroid/widget/MyListView$FixedViewInfo;->isSelectable:Z

    if-nez v2, :cond_0

    .line 73
    const/4 v2, 0x0

    .line 77
    .end local v0           #i$:Ljava/util/Iterator;
    .end local v1           #info:Landroid/widget/MyListView$FixedViewInfo;
    :goto_0
    return v2

    :cond_1
    const/4 v2, 0x1

    goto :goto_0
.end method


# virtual methods
.method public areAllItemsEnabled()Z
    .locals 2

    .prologue
    const/4 v1, 0x1

    .line 123
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_1

    .line 124
    iget-boolean v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAreAllFixedViewsSelectable:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v0}, Landroid/widget/ListAdapter;->areAllItemsEnabled()Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v1

    .line 126
    :goto_0
    return v0

    .line 124
    :cond_0
    const/4 v0, 0x0

    goto :goto_0

    :cond_1
    move v0, v1

    .line 126
    goto :goto_0
.end method

.method public getCount()I
    .locals 2

    .prologue
    .line 115
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_0

    .line 116
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getFootersCount()I

    move-result v0

    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v1

    add-int/2addr v0, v1

    iget-object v1, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v1}, Landroid/widget/ListAdapter;->getCount()I

    move-result v1

    add-int/2addr v0, v1

    .line 118
    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getFootersCount()I

    move-result v0

    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v1

    add-int/2addr v0, v1

    goto :goto_0
.end method

.method public getFilter()Landroid/widget/Filter;
    .locals 1

    .prologue
    .line 232
    iget-boolean v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mIsFilterable:Z

    if-eqz v0, :cond_0

    .line 233
    iget-object p0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    .end local p0
    check-cast p0, Landroid/widget/Filterable;

    invoke-interface {p0}, Landroid/widget/Filterable;->getFilter()Landroid/widget/Filter;

    move-result-object v0

    .line 235
    :goto_0
    return-object v0

    .restart local p0
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getFootersCount()I
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getHeadersCount()I
    .locals 1

    .prologue
    .line 58
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 5
    .parameter "position"

    .prologue
    .line 147
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v2

    .line 148
    .local v2, numHeaders:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v3, :cond_1

    if-lt p1, v2, :cond_1

    .line 149
    sub-int v1, p1, v2

    .line 150
    .local v1, adjPosition:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3}, Landroid/widget/ListAdapter;->getCount()I

    move-result v0

    .line 151
    .local v0, adapterCount:I
    if-lt v1, v0, :cond_0

    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    if-eqz v3, :cond_0

    .line 152
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    sub-int v4, v1, v0

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/MyListView$FixedViewInfo;

    iget-object v3, p0, Landroid/widget/MyListView$FixedViewInfo;->data:Ljava/lang/Object;

    .line 159
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :goto_0
    return-object v3

    .line 154
    .restart local v0       #adapterCount:I
    .restart local v1       #adjPosition:I
    .restart local p0
    :cond_0
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3, v1}, Landroid/widget/ListAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v3

    goto :goto_0

    .line 156
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :cond_1
    if-ge p1, v2, :cond_2

    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    if-eqz v3, :cond_2

    .line 157
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/MyListView$FixedViewInfo;

    iget-object v3, p0, Landroid/widget/MyListView$FixedViewInfo;->data:Ljava/lang/Object;

    goto :goto_0

    .line 159
    .restart local p0
    :cond_2
    const/4 v3, 0x0

    goto :goto_0
.end method

.method public getItemId(I)J
    .locals 5
    .parameter "position"

    .prologue
    .line 163
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v2

    .line 164
    .local v2, numHeaders:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v3, :cond_0

    if-lt p1, v2, :cond_0

    .line 165
    sub-int v1, p1, v2

    .line 166
    .local v1, adjPosition:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3}, Landroid/widget/ListAdapter;->getCount()I

    move-result v0

    .line 167
    .local v0, adapterCnt:I
    if-ge v1, v0, :cond_0

    .line 168
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3, v1}, Landroid/widget/ListAdapter;->getItemId(I)J

    move-result-wide v3

    .line 171
    .end local v0           #adapterCnt:I
    .end local v1           #adjPosition:I
    :goto_0
    return-wide v3

    :cond_0
    const-wide/16 v3, -0x1

    goto :goto_0
.end method

.method public getItemViewType(I)I
    .locals 4
    .parameter "position"

    .prologue
    .line 200
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v2

    .line 201
    .local v2, numHeaders:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v3, :cond_0

    if-lt p1, v2, :cond_0

    .line 202
    sub-int v1, p1, v2

    .line 203
    .local v1, adjPosition:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3}, Landroid/widget/ListAdapter;->getCount()I

    move-result v0

    .line 204
    .local v0, adapterCount:I
    if-ge v1, v0, :cond_0

    .line 205
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3, v1}, Landroid/widget/ListAdapter;->getItemViewType(I)I

    move-result v3

    .line 209
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :goto_0
    return v3

    :cond_0
    const/4 v3, -0x2

    goto :goto_0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 182
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v2

    .line 183
    .local v2, numHeaders:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v3, :cond_1

    if-lt p1, v2, :cond_1

    .line 184
    sub-int v1, p1, v2

    .line 185
    .local v1, adjPosition:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3}, Landroid/widget/ListAdapter;->getCount()I

    move-result v0

    .line 186
    .local v0, adapterCount:I
    if-lt v1, v0, :cond_0

    .line 187
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    if-eqz v3, :cond_2

    .line 188
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    sub-int v4, v1, v0

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/MyListView$FixedViewInfo;

    iget-object v3, p0, Landroid/widget/MyListView$FixedViewInfo;->view:Landroid/view/View;

    .line 196
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :goto_0
    return-object v3

    .line 191
    .restart local v0       #adapterCount:I
    .restart local v1       #adjPosition:I
    .restart local p0
    :cond_0
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3, v1, p2, p3}, Landroid/widget/ListAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    goto :goto_0

    .line 193
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :cond_1
    if-ge p1, v2, :cond_2

    .line 194
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/MyListView$FixedViewInfo;

    iget-object v3, p0, Landroid/widget/MyListView$FixedViewInfo;->view:Landroid/view/View;

    goto :goto_0

    .line 196
    .restart local p0
    :cond_2
    const/4 v3, 0x0

    goto :goto_0
.end method

.method public getViewTypeCount()I
    .locals 1

    .prologue
    .line 213
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_0

    .line 214
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v0}, Landroid/widget/ListAdapter;->getViewTypeCount()I

    move-result v0

    .line 216
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method public getWrappedAdapter()Landroid/widget/ListAdapter;
    .locals 1

    .prologue
    .line 239
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    return-object v0
.end method

.method public hasStableIds()Z
    .locals 1

    .prologue
    .line 175
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_0

    .line 176
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v0}, Landroid/widget/ListAdapter;->hasStableIds()Z

    move-result v0

    .line 178
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isEmpty()Z
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_0

    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v0}, Landroid/widget/ListAdapter;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public isEnabled(I)Z
    .locals 5
    .parameter "position"

    .prologue
    .line 131
    invoke-virtual {p0}, Landroid/widget/MyHeaderViewListAdapter;->getHeadersCount()I

    move-result v2

    .line 132
    .local v2, numHeaders:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v3, :cond_1

    if-lt p1, v2, :cond_1

    .line 133
    sub-int v1, p1, v2

    .line 134
    .local v1, adjPosition:I
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3}, Landroid/widget/ListAdapter;->getCount()I

    move-result v0

    .line 135
    .local v0, adapterCount:I
    if-lt v1, v0, :cond_0

    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    if-eqz v3, :cond_0

    .line 136
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    sub-int v4, v1, v0

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/MyListView$FixedViewInfo;

    iget-boolean v3, p0, Landroid/widget/MyListView$FixedViewInfo;->isSelectable:Z

    .line 143
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :goto_0
    return v3

    .line 138
    .restart local v0       #adapterCount:I
    .restart local v1       #adjPosition:I
    .restart local p0
    :cond_0
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v3, v1}, Landroid/widget/ListAdapter;->isEnabled(I)Z

    move-result v3

    goto :goto_0

    .line 140
    .end local v0           #adapterCount:I
    .end local v1           #adjPosition:I
    :cond_1
    if-ge p1, v2, :cond_2

    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    if-eqz v3, :cond_2

    .line 141
    iget-object v3, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/MyListView$FixedViewInfo;

    iget-boolean v3, p0, Landroid/widget/MyListView$FixedViewInfo;->isSelectable:Z

    goto :goto_0

    .line 143
    .restart local p0
    :cond_2
    const/4 v3, 0x1

    goto :goto_0
.end method

.method public registerDataSetObserver(Landroid/database/DataSetObserver;)V
    .locals 1
    .parameter "observer"

    .prologue
    .line 220
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_0

    .line 221
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v0, p1}, Landroid/widget/ListAdapter;->registerDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 223
    :cond_0
    return-void
.end method

.method public removeFooter(Landroid/view/View;)Z
    .locals 5
    .parameter "v"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 98
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_2

    .line 99
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/MyListView$FixedViewInfo;

    .line 100
    .local v1, info:Landroid/widget/MyListView$FixedViewInfo;
    iget-object v2, v1, Landroid/widget/MyListView$FixedViewInfo;->view:Landroid/view/View;

    if-ne v2, p1, :cond_1

    .line 101
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    .line 103
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-direct {p0, v2}, Landroid/widget/MyHeaderViewListAdapter;->areAllListInfosSelectable(Ljava/util/ArrayList;)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-direct {p0, v2}, Landroid/widget/MyHeaderViewListAdapter;->areAllListInfosSelectable(Ljava/util/ArrayList;)Z

    move-result v2

    if-eqz v2, :cond_0

    move v2, v4

    :goto_1
    iput-boolean v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mAreAllFixedViewsSelectable:Z

    move v2, v4

    .line 111
    .end local v1           #info:Landroid/widget/MyListView$FixedViewInfo;
    :goto_2
    return v2

    .restart local v1       #info:Landroid/widget/MyListView$FixedViewInfo;
    :cond_0
    move v2, v3

    .line 103
    goto :goto_1

    .line 98
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .end local v1           #info:Landroid/widget/MyListView$FixedViewInfo;
    :cond_2
    move v2, v3

    .line 111
    goto :goto_2
.end method

.method public removeHeader(Landroid/view/View;)Z
    .locals 5
    .parameter "v"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 81
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_2

    .line 82
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/MyListView$FixedViewInfo;

    .line 83
    .local v1, info:Landroid/widget/MyListView$FixedViewInfo;
    iget-object v2, v1, Landroid/widget/MyListView$FixedViewInfo;->view:Landroid/view/View;

    if-ne v2, p1, :cond_1

    .line 84
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    .line 86
    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mHeaderViewInfos:Ljava/util/ArrayList;

    invoke-direct {p0, v2}, Landroid/widget/MyHeaderViewListAdapter;->areAllListInfosSelectable(Ljava/util/ArrayList;)Z

    move-result v2

    if-eqz v2, :cond_0

    iget-object v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mFooterViewInfos:Ljava/util/ArrayList;

    invoke-direct {p0, v2}, Landroid/widget/MyHeaderViewListAdapter;->areAllListInfosSelectable(Ljava/util/ArrayList;)Z

    move-result v2

    if-eqz v2, :cond_0

    move v2, v4

    :goto_1
    iput-boolean v2, p0, Landroid/widget/MyHeaderViewListAdapter;->mAreAllFixedViewsSelectable:Z

    move v2, v4

    .line 94
    .end local v1           #info:Landroid/widget/MyListView$FixedViewInfo;
    :goto_2
    return v2

    .restart local v1       #info:Landroid/widget/MyListView$FixedViewInfo;
    :cond_0
    move v2, v3

    .line 86
    goto :goto_1

    .line 81
    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .end local v1           #info:Landroid/widget/MyListView$FixedViewInfo;
    :cond_2
    move v2, v3

    .line 94
    goto :goto_2
.end method

.method public unregisterDataSetObserver(Landroid/database/DataSetObserver;)V
    .locals 1
    .parameter "observer"

    .prologue
    .line 226
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    if-eqz v0, :cond_0

    .line 227
    iget-object v0, p0, Landroid/widget/MyHeaderViewListAdapter;->mAdapter:Landroid/widget/ListAdapter;

    invoke-interface {v0, p1}, Landroid/widget/ListAdapter;->unregisterDataSetObserver(Landroid/database/DataSetObserver;)V

    .line 229
    :cond_0
    return-void
.end method
